import java.util.Scanner;
public class Task07 {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int m = sc.nextInt();
		int n = sc.nextInt();
		sc.close();
		int mult = 1;
		int sum = 0;
		
		if (n < m){
			int tmp = m;
			m = n;
			n = tmp;
		}
		
		for (int i = m + 1; i < n; i++){
			mult *= i;
			sum += i;
		}

		System.out.println("Multiplied: " + mult + " Sum: " + sum);
		
	}

}
